package com.ambow.gateway;

import com.ambow.common.web.ApplicationBase;
import com.ambow.common.web.SwaggerConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * Created by MMM on 2018/06/14.
 */
@SpringBootApplication(scanBasePackageClasses = {SwaggerConfig.class},
        scanBasePackages = {
        "com.ambow.gateway",
         "com.ambow.common.shiro",
        "com.ambow.common.redis",
        "com.ambow.feign",
        "com.ambow.common.config",
        "com.ambow.api.model.admin"
},exclude = {DataSourceAutoConfiguration.class})
@EnableEurekaClient
@EnableFeignClients(basePackages = {"com.ambow.feign"})
@EnableHystrixDashboard
@EnableCircuitBreaker
public class GateWayApplication extends ApplicationBase {
    public static void main(String[] args) {
        SpringApplication.run(GateWayApplication.class, args);
    }
}
